package com.flying.invest.strategy.model;

import java.util.Date;

import com.flying.common.util.Codes;
import com.flying.framework.data.Data;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="i_strategy_invest_monitor_transaction",title="投资监控策略交易", table="i_strategy_invest_monitor_transaction", primaryKeys={"transaction_id"})
public class StrategyInvestMonitorTransaction extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_strategy_invest_monitor_transaction";
	
	public final static String TRANSACTION_ID = "transaction_id";
	public final static String USER_ID = "user_id";
	public final static String TYPE_ID = "type_id";
	public final static String INVEST_ID = "invest_id";
	public final static String STRATEGY_ID = "strategy_id";
	public final static String TRANSACTION_TYPE = "transaction_type";
	public final static String AMOUNT = "amount";
	public final static String QUANTITY = "quantity";
	public final static String PRICE = "price";
	public final static String CREATE_TIME = "create_time";
	
	
	@Param(value=TRANSACTION_ID, required=true, desc="交易ID")
	private Long transactionId;
	
	@Param(value=USER_ID, required=true, desc="所属用户" )
	private Long userId;
	
	@Param(value=TYPE_ID, required=true, desc="策略类型" )
	private Long typeId;
	
	@Param(value=INVEST_ID, required=true, desc="投资项目" )
	private Long investId;
	
	@Param(value=STRATEGY_ID, required=true, desc="策略ID" )
	private Long strategyId;
	
	@Param(value=TRANSACTION_TYPE, required=false, desc="交易类型" )
	private Integer transactionType;
	
	@Param(value=AMOUNT, required=false, desc="交易金额" )
	private Double amount;
	
	@Param(value=QUANTITY, required=false, desc="交易数量" )
	private Double quantity;
	
	@Param(value=PRICE, required=false, desc="交易价格" )
	private Double price;
	
	@Param(value=CREATE_TIME, required=false, desc="创建时间" )
	private Date createTime;
	
	
	public Long getTransactionId() {
		return this.transactionId;
	}
	
	public void setTransactionId(Long transactionId) {
		this.transactionId = transactionId;
	}
	
	public Long getUserId() {
		return this.userId;
	}
	
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public Long getTypeId() {
		return this.typeId;
	}
	
	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}
	
	public Long getInvestId() {
		return this.investId;
	}
	
	public void setInvestId(Long investId) {
		this.investId = investId;
	}
	
	public Long getStrategyId() {
		return this.strategyId;
	}
	
	public void setStrategyId(Long strategyId) {
		this.strategyId = strategyId;
	}
	
	public Integer getTransactionType() {
		return this.transactionType;
	}
	
	public void setTransactionType(Integer transactionType) {
		this.transactionType = transactionType;
	}
	
	public Double getAmount() {
		return this.amount;
	}
	
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	
	public Double getQuantity() {
		return this.quantity;
	}
	
	public void setQuantity(Double quantity) {
		this.quantity = quantity;
	}
	
	public Double getPrice() {
		return this.price;
	}
	
	public void setPrice(Double price) {
		this.price = price;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	

}